package com.github_dididipapa.mall.product.feign;

import com.github_dididipapa.common.config.FeignConfig;
import com.github_dididipapa.common.utils.R;
import com.github_dididipapa.mall.product.vo.SkuHasStockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @description: To be defined
 * @author: dididi_papa
 * @email: mitis1624087624@gmail.com
 * @date: 2025/07/03  17:23
 */
@FeignClient(name = "mall-gateway",
        url = "http://127.0.0.1:88",
        contextId = "wareFeignService",
        configuration = FeignConfig.class
)

public interface WareFeignService {

    @PostMapping("api/ware/waresku/hasstock")
    List<SkuHasStockVo> getSkusHasStock(@RequestBody List<Long> skuIds);
}
